package com.sailing.xjpb.web.base.swagger;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * swagger对Pageable类型的参数的定义
 *
 * @author YW
 * @see org.springframework.data.domain.Pageable
 * @see com.sailing.xjpb.web.base.converter.PageableMethodArgumentResolver
 */
@Data
@ApiModel
public class SwaggerPageable {

    @ApiModelProperty(value = "当前页码", example = "1", position = 2)
    private Integer pageNum = 1;

    @ApiModelProperty(value = "每页大小", example = "10", position = 3)
    private Integer pageSize = 10;

    @ApiModelProperty(value = "排序字段(多个以“,”拼接)", position = 4)
    private String sortType;

    @ApiModelProperty(value = "排序顺序（asc|desc）", position = 5)
    private String direction;

}